package metamodels;

import java.util.ArrayList;
import java.util.List;

import parser.generic.Node;

public class Features extends Node{

	private List<Feature> featuresList;

	public Features() {
		featuresList = new ArrayList<Feature>();
	}

	public void addFeature(Feature feature) {
		featuresList.add(feature);
	}

	@Override
	public String toString() {
		String out = "";
		
		for(Feature f: featuresList)
			out += f + "\n";
		
		out = out.substring(0, out.length() -1);
		
		return out;
	}

	public List<Feature> getFeatures() {
		return featuresList;
	}
}
